#ifndef __usart_H
#define __usart_H

#ifdef __cplusplus
    extern "C" {
#endif

//-------------------------include C Header File start------------------------//
#include "sys.h"
//-------------------------include C Header File end--------------------------//
//-------------------------defined variable start-----------------------------//
#define USART1_TX_Pin                       GPIO_PIN_9
#define USART1_TX_GPIO_Port                 GPIOA
#define USART1_RX_Pin                       GPIO_PIN_10
#define USART1_RX_GPIO_Port                 GPIOA

#define UART1_RX_BUFF_LEN 					255

extern u8 Uart1_rdata;
extern u8 uart1_rxbuff[UART1_RX_BUFF_LEN];
extern bool uart1_Receive_Right_flag;
extern UART_HandleTypeDef UART1_Handler;
//-------------------------defined variable end-------------------------------//
//-------------------------Function declaration start-------------------------//
void MX_USART1_Init(void);
u8 Uart_Receive_Interrupt_Switch(UART_HandleTypeDef* huart,u8* uart_receive_data);
void PrintBytes1(uint8_t puts);
void PrintString1(u8 *puts,u8 LEN);
//-------------------------Function declaration end---------------------------// 

#ifdef __cplusplus
    }
#endif
    
#endif
/*********************************END OF FILE***********************************/

